
/**
  ******************************************************************************
  * Copyright 2021 The Microbee Authors. All Rights Reserved.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  * 
  * http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * 
  * @file       parameters.c
  * @author     baiyang
  * @date       2022-8-16
  ******************************************************************************
  */

/*----------------------------------include-----------------------------------*/
#include <rtconfig.h>
#include <parameter/param.h>
#include <relay/relay_config.h>
/*-----------------------------------macro------------------------------------*/

/*----------------------------------typedef-----------------------------------*/

/*---------------------------------prototype----------------------------------*/


/*----------------------------------variable----------------------------------*/
// 仿真不编译传感器相关文件
#if CONFIG_HAL_BOARD != HAL_BOARD_SITL_WIN
PARAM_GROUP_DECLARE(INS);
PARAM_GROUP_DECLARE(BARO);
PARAM_GROUP_DECLARE(COMPASS);
PARAM_GROUP_DECLARE(GPS);
PARAM_GROUP_DECLARE(EKF2);
PARAM_GROUP_DECLARE(ARSPD);
#endif

PARAM_GROUP_DECLARE(WPNAV);
PARAM_GROUP_DECLARE(RC);
PARAM_GROUP_DECLARE(SERIAL);
PARAM_GROUP_DECLARE(MOTORS);
PARAM_GROUP_DECLARE(ARMING);
PARAM_GROUP_DECLARE(NTF);
PARAM_GROUP_DECLARE(GCS);
PARAM_GROUP_DECLARE(MIS);
PARAM_GROUP_DECLARE(BATT);
PARAM_GROUP_DECLARE(RCMAP);
PARAM_GROUP_DECLARE(RTC);
PARAM_GROUP_DECLARE(RNGFND);
PARAM_GROUP_DECLARE(SERVO);

#if CONFIG_HAL_BOARD == HAL_BOARD_SITL_WIN
PARAM_GROUP_DECLARE(SIM);
PARAM_GROUP_DECLARE(SIM2);
PARAM_GROUP_DECLARE(SIM3);
PARAM_GROUP_DECLARE(SIM_GPS);
PARAM_GROUP_DECLARE(SIM_MAG);
PARAM_GROUP_DECLARE(SIM_INS);
PARAM_GROUP_DECLARE(SIM_SHIP);
#endif

PARAM_GROUP_DECLARE(BLOG);
PARAM_GROUP_DECLARE(VEHICLE);
PARAM_GROUP_DECLARE(RLL_CTRL);
PARAM_GROUP_DECLARE(PTCH_CTRL);
PARAM_GROUP_DECLARE(YAW_CTRL);
PARAM_GROUP_DECLARE(STEER_CTRL);
#if MB_RELAY_ENABLED
PARAM_GROUP_DECLARE(RELAY);
#endif

param_group_t* param_group_list[] = {
#if CONFIG_HAL_BOARD != HAL_BOARD_SITL_WIN
    PARAM_GROUP_PTR(INS),
    PARAM_GROUP_PTR(BARO),
    PARAM_GROUP_PTR(COMPASS),
    PARAM_GROUP_PTR(GPS),
    PARAM_GROUP_PTR(EKF2),
    PARAM_GROUP_PTR(ARSPD),
#endif
    PARAM_GROUP_PTR(GCS),
    PARAM_GROUP_PTR(WPNAV),
    PARAM_GROUP_PTR(RC),
    PARAM_GROUP_PTR(SERIAL),
    PARAM_GROUP_PTR(MOTORS),
    PARAM_GROUP_PTR(ARMING),
    PARAM_GROUP_PTR(NTF),
    PARAM_GROUP_PTR(MIS),
    PARAM_GROUP_PTR(BATT),
    PARAM_GROUP_PTR(RCMAP),
    PARAM_GROUP_PTR(RTC),
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL_WIN
    PARAM_GROUP_PTR(SIM),
    PARAM_GROUP_PTR(SIM2),
    PARAM_GROUP_PTR(SIM3),
    PARAM_GROUP_PTR(SIM_GPS),
    PARAM_GROUP_PTR(SIM_MAG),
    PARAM_GROUP_PTR(SIM_INS),
    PARAM_GROUP_PTR(SIM_SHIP),
#endif
#if RANGEFINDER_ENABLED == ENABLED
    PARAM_GROUP_PTR(RNGFND),
#endif
    PARAM_GROUP_PTR(SERVO),
    PARAM_GROUP_PTR(BLOG),
    PARAM_GROUP_PTR(VEHICLE),
    PARAM_GROUP_PTR(RLL_CTRL),
    PARAM_GROUP_PTR(PTCH_CTRL),
    PARAM_GROUP_PTR(YAW_CTRL),
    PARAM_GROUP_PTR(STEER_CTRL),
#if MB_RELAY_ENABLED
    PARAM_GROUP_PTR(RELAY),
#endif
};
const uint8_t param_group_num = sizeof(param_group_list)/sizeof(param_group_list[0]);
/*-------------------------------------os-------------------------------------*/

/*----------------------------------function----------------------------------*/

/*------------------------------------test------------------------------------*/


